package community.hospital.common;

import community.hospital.annotation.CheckState;
import lombok.Data;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @Author：ydj
 * @Date：2023/1/16 16:54
 */
@Data
public class BaseIndex {
    @NotNull(groups = Update.class,message = "id不能为null")
    @Null(groups = Add.class,message = "请勿携带id")
    private Long id;

    @CheckState(groups = {Add.class, Update.class})
    private Integer state;
}
